package day09API.stream;

import java.io.BufferedOutputStream;
import java.io.FileOutputStream;

/**
 * @author DBX
 * @date 2021/8/26 0026 - 17:46
 */
public class FlushDemo {
    public static void main(String[] args) throws Exception{
        FileOutputStream fos = new FileOutputStream("./File/fos.txt");
        BufferedOutputStream bos = new BufferedOutputStream(fos);
        bos.write(65);
        bos.write(66);
        bos.write(67);
        bos.close();//方法包含 bos.flush()，一定一定要关闭文件
    }
}
